Q3Mesh_FaceNew
You can use theQ3Mesh_FaceNew
function to add a face to a mesh.
TQ3MeshFace Q3Mesh_FaceNew ( TQ3GeometryObject mesh, unsigned long numVertices, const TQ3MeshVertex *vertices, TQ3AttributeSet attributeSet);
mesh
- A mesh.
numVertices
- The number of mesh vertices in the
vertices
array.vertices
- A pointer to an array of mesh vertices defining the new mesh face. These vertices can be ordered either clockwise or counterclockwise.
attributeSet
- The desired set of attributes for the new mesh face. Set this parameter to
NULL
if you do no want any attributes for the new face.DESCRIPTION
TheQ3Mesh_FaceNew
function adds the face specified by thevertices
parameter to the mesh specified by themesh
parameter. The mesh must already exist before you callQ3Mesh_FaceNew
. The new mesh face is returned as the function result.